package ch07;

import java.util.ArrayList;
import java.util.List;

public class StringMain {
    public static void main(String[] args) {
        ArrayList<String> stringList = new ArrayList<String>();
        stringList.add("张三");
        stringList.add("李四");
        stringList.add("王五");
        stringList.add("小帅");
        stringList.add("小美");
        List<String> subList = stringList.subList(3,5);// [3,5)
        System.out.println(stringList);
        System.out.println(subList);
        System.out.println(stringList.containsAll(subList));
    }
}
